﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Bowerbird.Website.Models;
using Bowerbird.Website.Models.Home;

namespace Bowerbird.Website.Controllers
{
    public class HomeController : ControllerBase
    {
        public ActionResult Index()
        {
            //if (CurrentUser != null && CurrentUser.IsNewUser)
            //    return RedirectToAction("Complete", "Profile");

            var model = new IndexModel();

            if (Request.IsAuthenticated)
            {
                // ToDo: API Call

                //UserService service = new UserService();

                //model.ContactData = service.GetContactData(CurrentUser.Id);

                //model.SuggestedUsers = service.SuggestUsers(CurrentUser.Id);
            }

            return View(model);
        }
    }
}
